package com.ruoyi.service.impl;

import com.ruoyi.entity.VerCouponGroup;
import com.ruoyi.mapper.VerCouponGroupsMapper;
import com.ruoyi.service.VerCouponGroupsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class VerCouponGroupsServiceImpl implements VerCouponGroupsService {
    @Autowired
    private VerCouponGroupsMapper verCouponGroupsMapper;
    @Override
    public VerCouponGroup selectById(Long id) {
        return verCouponGroupsMapper.selectById( id);
    }

    @Override
    public List<VerCouponGroup> selectAll(VerCouponGroup  group) {
        return verCouponGroupsMapper.selectAll(group);
    }

    @Override
    public int insert(VerCouponGroup group) {
        return verCouponGroupsMapper.insert(group);
    }

    @Override
    public int update(VerCouponGroup group) {
        return verCouponGroupsMapper.update( group);
    }

    @Override
    public int deleteById(Long[] ids) {
        return verCouponGroupsMapper.deleteById( ids);
    }
}
